﻿using System;

using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.Mobile.Configuration;

namespace Microsoft.Practices.Mobile.DisconnectedAgent.WebService.ConfigurationCredentialService
{
    public class AccountElement : ConfigurationElement
    {
        [ConfigurationProperty("AccountName", IsKey=true)]
        public string AccountName 
        {
            get { return (string)this["AccountName"]; }
            set { this["AccountName"] = value; }
        }

        [ConfigurationProperty("Username", IsKey=false)]
        public string Username
        {
            get { return (string)this["Username"]; }
            set { this["Username"] = value; }
        }

        [ConfigurationProperty("Password", IsKey=false)]
        public string Password
        {
            get { return (string)this["Password"]; }
            set { this["Password"] = value; }
        }

        [ConfigurationProperty("Domain", IsKey=false)]
        public string Domain
        {
            get { return (string)this["Domain"]; }
            set { this["Domain"] = value; }
        }
    }
}
